import request from '@/utils/request'

// 查询户口信息列表
export function listHukou(query) {
  return request({
    url: '/population/hukou/list',
    method: 'get',
    params: query
  })
}

// 查询户口信息详细
export function getHukou(hukouId) {
  return request({
    url: '/population/hukou/' + hukouId,
    method: 'get'
  })
}

// 新增户口信息
export function addHukou(data) {
  return request({
    url: '/population/hukou',
    method: 'post',
    data: data
  })
}

// 修改户口信息
export function updateHukou(data) {
  return request({
    url: '/population/hukou',
    method: 'put',
    data: data
  })
}

// 删除户口信息
export function delHukou(hukouId) {
  return request({
    url: '/population/hukou/' + hukouId,
    method: 'delete'
  })
}
